package com.fashiontextile.admin.service;

import com.fashiontextile.admin.entity.Dict;
import com.fashiontextile.admin.entity.DictCategory;
import com.fashiontextile.common.entity.R;

import java.util.List;

public interface DictService {
    Dict selectDictByDid(Long did);

    List<Dict> selectDictChildrenByDids(List<Long> dids);

    List<Dict> selectDictByCategoryId(Long dcid);

    List<DictCategory> selectAllDictCategory();

    DictCategory selectDictCategoryBydicd(Long dicd);

    Dict selectDictbyTypeAndValueAndParent(Long dcid, String value, Long parent);

    Integer insertDict(Dict dict);

    Integer deleteDictByDid(Long did);

    Integer deleteDictCategoryByDcid(Long dcid);

    DictCategory selectDictcategoryByname(String categoryName);

    Integer insertDictcategory(String dictCategory);
}
